#!/bin/bash

LastBkpFile=/export/mysql_backup/`ls -t /export/mysql_backup/ | head -1`
gzip -d $LastBkpFile
sqlFile=`echo $LastBkpFile| sed s,.gz,,`
mysql -h localhost -uroot -pum1O3@l. < $sqlFile
gzip $sqlFile
echo $sqlFile
